<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>车辆列表</title>
</head>
    <style>
        body{
            margin: 0;
            text-align: center;
        }
        a{
            
            text-decoration: none;
        }
		table{
			width:100%;
		}
		table tr td{
			height:40px;
			line-height:40px;
			text-align:center;
			border: solid 1px #eee;
		}
		.lump{
            width: 80%;
            height: 10vw;
            margin: 4vw auto;
            line-height: 10vw;
            text-align:center;
            background: #1E90FF;
            color:white;
        }
         .confirmBtn {
            width: 100%;
            height: 40px;
            line-height: 40px;
            background-color: #1E90FF;
            text-align: center;
            margin: 30px auto;
            color: white;
            border-radius: 10px;
        }
        .add{
        	background-color: #1E90FF;
        	text-align: center;
        	width: 80%;
            height: 40px;
            line-height: 40px;
             color: white;
            border-radius: 10px;
            margin-top:20px;
        }
    </style>
<body>
	<div>
		<div style="margin-top:20px"></div>
		<table>
			<tr>
				<td style="width:60%">车牌号</td>
				<td style="">操作</td>
			</tr>
			{volist name="carlist" id="vol"}
			<tr>
				<td>{$vol}</td>
				<td>
					
				</td>
			</tr>
			{/volist}
		</table>
		<div>
			{if $num<"3"}
			<button  class="add" onclick="caradd()">添加车牌</button>
			{/if}
			
		</div>
	</div>
</body>
</html>
<script src="static/admin/js/jquery.js"></script>
<script type="text/javascript">
	function caradd(){
		var url="{:url('carLibraryAdd')}"+"?user_id="+{$user_id};
		console.log(url);
		window.location.href=url;
	}
</script>